package com.aishua.aishuawallet.bean;

/**
 * Created by aishua on 2018/8/7.
 */

public class ReqAuthBean extends Header {

      private String Timestamp;
      private String ClientVer;
      private String AuthType;
      private String UserMobile;
      private String UserPW;
      private String UserEmail;
      private String ICCID;
      private String IMEI;

    public String getTimestamp() {

        return Timestamp;
    }

    public void setTimestamp(String timestamp) {
        Timestamp = timestamp;
    }

    public String getClientVer() {
        return ClientVer;
    }

    public void setClientVer(String clientVer) {
        ClientVer = clientVer;
    }

    public String getAuthType() {
        return AuthType;
    }

    public void setAuthType(String authType) {
        AuthType = authType;
    }

    public String getUserMobile() {
        return UserMobile;
    }

    public void setUserMobile(String userMobile) {
        UserMobile = userMobile;
    }

    public String getUserPW() {
        return UserPW;
    }

    public void setUserPW(String userPW) {
        UserPW = userPW;
    }

    public String getUserEmail() {
        return UserEmail;
    }

    public void setUserEmail(String userEmail) {
        UserEmail = userEmail;
    }

    public String getICCID() {
        return ICCID;
    }

    public void setICCID(String ICCID) {
        this.ICCID = ICCID;
    }

    public String getIMEI() {
        return IMEI;
    }

    public void setIMEI(String IMEI) {
        this.IMEI = IMEI;
    }

    @Override
    public String requestString() {

        String data = getVersion()+getCommand_ID()+getOrderID()+getSenderCode()+
                Timestamp+ClientVer+AuthType+UserMobile+UserPW+ICCID+IMEI;
        String hexlength =String.format("%08X",data.length() );

        return hexlength+data;
    }
}
